package com.net.xpay.common.service.notification;

import com.net.xpay.common.domain.notification.Notification;
import com.net.xpay.common.model.FetchNotificationModel;

/**
 * 公告服务
 */
public interface NotificationService {
    /**
     * 根据模块查找一个公告
     * @param userId 用户id
     * @param model 模块等参数
     * @return
     */
    Notification fetchOneByModule(Long userId, FetchNotificationModel model);

    Long addNotification(Notification notification);

    Long updateNotification(Notification notification);
}
